package com.googlecode.simpleqms

import grails.converters.JSON

class ProjectController {
    def ProjectService

    def getList = {
        render ProjectService.getList(params) as JSON
    }

    def getAllProjects = {
        render ProjectService.getAllProjects() as JSON
    }

    def getElement = {
        render ProjectService.getElement(params) as JSON
    }

    def addElement = {
        render ProjectService.addElement(params) as JSON
    }

    def modElement = {
        render ProjectService.modElement(params) as JSON
    }

    def delElement = {
        render ProjectService.delElement(params) as JSON
    }
}